<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Lista Afastamentos</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/vader/jquery-ui.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" />

<script src="js/jquery-1.9.0.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.10.3.custom.js"></script>
<script src="js/jquery.jqGrid.src.js" type="text/javascript"></script>
<script src="js/i18n/grid.locale-pt-br.js" type="text/javascript"></script>

<script type="text/javascript">
	$(function(){
		jQuery('#list1').jqGrid({
			url:"listDemissoes.php",
			datatype:'json',
			mtype: 'GET',
			colNames:['ID','Nome','ID Funcionário','Colaborador','Data Afastamento','Data Entrevista','Entrevistador','Informações'],
			colModel:[
				{name:'id',index:'id',width:40},
				{name:'nome',index:'nome',width:120},
				{name:'idFuncionario',index:'idFuncionario',width:120},
				{name:'colaborador',index:'colaborador',width:120},
				{name:'dataAfastamento',index:'dataAfastamento',width:100},
				{name:'dataentrevista',index:'dataentrevista',width:100},
				{name:'entrevistador',index:'entrevistador',width:120},
				{name:'informacoes',index:'informacoes',width:90,formatter:'showlink',formatoptions:{
				baseLinkUrl:'formInfoDemissao.php'}}
			],
			rowNum:10,
			rowList:[10,20,30],
			pager: '#pager1',
			sortname:'id',
			viewrecords: true,
			sortorder:"asc",
			caption:"Lista de Demissões"
		});	
	});
</script>
</head>

<body>
<table id="list1" name="list1"></table>
<div id="pager1" name="pager1"></div>	
    <p align="center"><a href="index.php">Voltar para menu inicial</a></p>
</body>
</html>